package com.zc.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zc.blog.model.Tag;

import java.util.List;

/**
 * 用户Mapper接口
 */
public interface TagMapper extends BaseMapper<Tag> {

    Tag findById(Integer id);

    //根据文章id获取所有标签
    List<Tag> findTagsByArticleId(Integer articleId);

    //查询标签显示
    List<Tag> findShow();
}
